package com.hs.service;

import com.github.pagehelper.PageInfo;
import com.hs.entity.Reply;
import com.hs.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserService {
    //增
    int addUser(User user);
    //删
    int deleteUser(int id);
    //改
    int updateUser(User user);
    //查
    User getUserById(int id);
    //分页查询
    PageInfo<User> getUserByPage(int pageNum, int pageSize);
    //登录
    User getUserByLogin(String account , String password);
    //修改密码
    int updateUserGai(User user);
    //获取手机号
    User getUserByPhone(String phone);
    String updatePhone(Long userId, String newPhone);
    //
    List<Reply> findReplyById(int id);
    PageInfo<Reply> findReplyByPage(int pageNum, int pageSize);
}
